package com.app.car.bean;
import android.text.TextUtils;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Unique;
@Entity(indexes = {@Index(value = "rfid", unique = true)})
public class RfidListData extends BasisBean {

    private static final long serialVersionUID = 1L;

    private String ware; //仓库
    private String rfid;
    private String type; //类别
    private String gid;   //货品编码
    private String name; //名称
    private String specs; //规格


    private String year; //年份
    private String month; //月份
    private int ant = 0; //天线
    private long time;  //时间戳



    @Generated(hash = 1907662181)
    public RfidListData(String ware, String rfid, String type, String gid,
            String name, String specs, String year, String month, int ant,
            long time) {
        this.ware = ware;
        this.rfid = rfid;
        this.type = type;
        this.gid = gid;
        this.name = name;
        this.specs = specs;
        this.year = year;
        this.month = month;
        this.ant = ant;
        this.time = time;
    }

    @Generated(hash = 1872579220)
    public RfidListData() {
    }



    public String getGid() {
        if(TextUtils.isEmpty(gid)) return "";
        return gid;
    }

    public void setGid(String gid) {
        this.gid = gid;
    }

    public String getRfid() {
        return rfid;
    }

    public void setRfid(String rfid) {
        this.rfid = rfid;
    }


    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getName() {
        if(TextUtils.isEmpty(name)) return "";
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getWare() {
        return ware;
    }

    public void setWare(String ware) {
        this.ware = ware;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public int getAnt() {
        return ant;
    }

    public void setAnt(int ant) {
        this.ant = ant;
    }


}
